define(['history'],function(_history) {
    function init(href,flag) {
        if(flag) {
            _history.push("inventory", href);
        }
        var inventory = getModule();
        $('#module-content').append(inventory);
    };

    function getModule() {
        var inventory;
        $.ajax({
            async : false,
            method : 'GET',
            url : 'app/lab/inventory/inventory.html',
            datType : 'string',
            success : function(response){
                if(typeof(response) === 'string'){
                    inventory = response;
                };
            }
        })
        return $(inventory);
    }

    return {
        init : init
    }

});